<script>
	import {mapMutations} from 'vuex'
	export default {
		onLaunch: function() {
			console.log('App Launch');
		},
		onShow: function(e) {
			console.log('App Show')
			let UserInfo = uni.getStorageSync('userInfo');
			//userInfo.id 视具体情况更改
			if(!UserInfo){
				var code = e.query.code;
				var msg = e.query.msg;
				var token = e.query.token;
				uni.navigateTo({
					url:'./pages/login/login?code='+code+'&msg='+msg+'&token='+token
				})
			}
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
	@import "./common/uni.css";
	@import "./common/global.css";
	@import "./common/icon.css";
	body{
		background-color: #f3f3f3;
	}
</style>
